(function(){
	'use strict';

	var app = angular.module('cameraMonitorApp',['zhx.camera.monitor']);

	app.config(['zhx.camera.monitorProvider',function( cameraMonitorProvider ){

	    cameraMonitorProvider.config({
            videoStreamUrl 		: 'js/data/test_local.json',
            videoPrarms : {
                addVideoKey 	: 'add',
                removeVideoKey 	: 'remove',
                heartBeatKey 	: 'heartBeat',
                qualityKey		: 'HD'
            },
            hearBeatInterval 	: 15    //heart beat second
        })

	}]);

	app.controller('cameraMonitorAppCtrl',["$scope","$http",function($scope,$http){

		$scope.monitorOptions = {
		    //tree data
            treeData : null,
            //1,2,3,4,6,9,10
            monitorDisplaySize : 6
		};


        $http.get('js/data/treeData.json').then(function(res){
            $scope.monitorOptions.treeData = res.data.data;
        })

	}]);


})();